package bean;

/**
 * @Author 王志康
 * @Date 2021/8/30 19:49
 * @Version 1.0.0
 */
public class UserBean extends PeopleBean {
    /**
     * integral 积分
     * userName 姓名
     * phoneNumber 电话号码
     */
    private int integral = 0;
    private String userName = "";
    private String phoneNumber = "";

    public UserBean(String number, String password, String userName, String phoneNumber) {
        super(number, password);
        this.userName = userName;
        this.phoneNumber = phoneNumber;
    }

    public UserBean(String number, String password, int integral, String userName, String phoneNumber) {
        super(number, password);
        this.integral = integral;
        this.userName = userName;
        this.phoneNumber = phoneNumber;
    }

    public UserBean(String number, String password) {
        super(number, password);
    }

    public int getIntegral() {
        return integral;
    }

    public void setIntegral(int integral) {
        this.integral = integral;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public String toString() {
        return "账号:" + number +
                " 密码:" + password +
                " 积分:" + integral +
                " 姓名:" + userName +
                " 电话号码:" + phoneNumber;
    }
}
